package com.ruicar.afs.cloud.bizcommon.algorithm.service;

import com.alibaba.fastjson.JSONObject;
import com.ruicar.afs.cloud.common.core.util.IResponse;
import com.ruicar.afs.cloud.bizcommon.business.dto.CalculatorDTO;

import java.util.List;

/**
 * @description: 金融算法服务类
 * @author: sijun.yu
 * @date: 2020/7/10 14:22
 */
public interface FinanceCalculatorService {

    /**
     * 单个还款计划表
     *
     * @param condition
     * @return
     */
    public IResponse getSingleRepaymentPlan(CalculatorDTO condition);

    /**
     * 多个还款计划表
     *
     * @param list
     * @return
     */
    public IResponse getMultipleRepaymentPlan(List<CalculatorDTO> list);

    /**
     * 多个摊销计划表
     *
     * @param list
     * @return
     */
    public IResponse getMultipleAmortizationPlan(List<CalculatorDTO> list);

    /**
     * 多个收入计划表
     * @param list
     * @return
     */
    public IResponse getMultipleIncomePlan(List<CalculatorDTO> list);

    /**
     * 获取产品参数信息
     *
     * @param dataJson
     * @param carProuctDto
     * @param addProductDto
     */
    public List<CalculatorDTO> getProductParameter(JSONObject dataJson, CalculatorDTO carProuctDto, CalculatorDTO addProductDto);
}
